//
// Created by LinorInk on 2024/3/9.
//

#ifndef TEST_UART_H
#define TEST_UART_H
#include "stm32f4xx.h"
#include "stm32f4xx_hal_uart.h"

extern UART_HandleTypeDef huart2;
extern UART_HandleTypeDef huart3;
#define UART_HANDLE &huart2

void UART_Init(void);
void UART_Write(uint8_t*data, uint16_t length);
uint8_t UART_Read();
uint8_t UART_isBusy();
uint8_t UART_isEmpty();
uint8_t UART_isBufferFit(uint8_t size);

#endif //TEST_UART_H
